package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.entity.PageResult;
import com.itheima.health.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CheckGroupDao {
    void add(CheckGroup checkGroup);


    void addCheckGroupAndCheckItem(@Param(value = "checkgroupId") Integer id, @Param(value = "checkitemId") Integer checkitemId);


    Page<CheckGroup> findByCondition(String queryString);

    CheckGroup findById(int id);

    List<Integer> selectCheckitemIdsById(int id);

    void edit(CheckGroup checkGroup);

    void deleteByCheckgroupId(Integer id);

    void delete(int id);

    List<CheckGroup> findAll();

    List<CheckGroup> findCheckGroupListById(int id);
}
